package com.dg.river.core.util;

/**
 * Created by hy on 2019/4/22
 * Description :
 */
public class DoubleUtils {
    private static long lastClickTime;
    private static final long TIME = 1000L;

    public DoubleUtils() {
    }

    public static boolean isFastDoubleClick() {
        long time = System.currentTimeMillis();
        if (time - lastClickTime < TIME) {
            return true;
        } else {
            lastClickTime = time;
            return false;
        }
    }
}
